/**
 * 
 */
package de.rotkiv.playlistgenerator.generator;

import java.util.Comparator;

/**
 * @author Vik
 *
 */
public class PositionStringComparator implements Comparator<PositionString>  {


	@Override
	public int compare(PositionString ps1, PositionString ps2) {
		if (ps1 == null || ps2 == null) {
			return 0;
		}
		//
		String str1 = ps1.getStr();
		String str2	= ps2.getStr();
		//
		int result 	= str1.compareTo(str2);
		return result;
	}
}
